package com.wyl.condition.aggr;

/**
 * @author 吴宇亮 on 2023/4/21 16:30
 */
public class AggrProperty {

    /**
     * 要统计的属性，比如学历分布，
     */
    private String property;
    /**
     * 是否统计null值
     */
    private boolean filterNull = false;
    /**
     * 统计的时间刻度，当要统计的property为日期类型，该字段才有效
     */
    private AggrDateIntervalEnum timeInterval;

    public String getProperty() {
        return property;
    }

    public AggrProperty setProperty(String property) {
        this.property = property;
        return this;
    }

    public boolean isFilterNull() {
        return filterNull;
    }

    public AggrProperty setFilterNull(boolean filterNull) {
        this.filterNull = filterNull;
        return this;
    }

    public AggrDateIntervalEnum getTimeInterval() {
        return timeInterval;
    }

    public AggrProperty setTimeInterval(AggrDateIntervalEnum timeInterval) {
        this.timeInterval = timeInterval;
        return this;
    }
}
